<template>
  <div class="el-container">
    <el-tabs :tab-position="tabPosition" style="margin-top: 50px;margin-left:20px;">
      <el-tab-pane label="基本设置">
        <el-form ref="form" :model="form" label-width="80px" size="max">
          <el-form-item label="账号信息">
            <el-input v-model="form.username" readonly></el-input>
          </el-form-item>
          <el-form-item label="昵称">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
          <el-col :span="12">
            <el-form-item label="国家">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="省份">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>
          <el-form-item>
            <el-button type="primary" @click="onSubmit">提交</el-button>
            <el-button>取消</el-button>
          </el-form-item>
        </el-form>
      </el-tab-pane>
      <el-tab-pane label="绑定账号">绑定账号</el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  name: "setting",
  data() {
    return {
      tabPosition: 'left',
      form: {
        username: '',
        name: '',
      }
    };
  },
  methods: {
    onSubmit() {

    }
  }
}
</script>

<style scoped>

</style>
